PhpOffice\PhpSpreadsheet\Calculation\Calculation D

Total Complexity 686
Dependencies 27
Dependents 280
Total lines 5,640
Lines of code 1,967
Logical lines of code 1,328
Comment lines 513
Methods 72
Properties 31

Methods 72

Method Rating Maintainability Complexity Lines of code
processTokenStack()
D
0
172 500
internalParseFormula()
D
0
150 391
executeNumericBinaryOperation()
D
32 34 95
calculateCellValue()
C
36 25 75
setLocale()
B
38 21 63
_calculateFormulaValue()
B
42 19 49
extractNamedRange()
A
44 16 40
resizeMatricesExtend()
A
49 15 34
resizeMatricesShrink()
A
50 15 30
showValue()
A
49 11 28
validateBinaryOperand()
A
50 11 26
extractCellRange()
A
48 10 32
showTypeDetails()
A
50 10 28
convertMatrixReferences()
A
47 9 37
evaluateDefinedName()
A
46 9 37
executeArrayComparison()
A
49 7 31
translateFormulaToLocale()
S
50 7 28
checkMatrixOperands()
S
52 7 24
translateFormulaToEnglish()
S
53 7 21
unwrapResult()
S
62 8 10
calculateFormula()
S
54 6 21
translateSeparator()
S
55 6 19
addDefaultArgumentValues()
S
55 6 19
wrapResult()
S
61 6 11
translateFormula()
S
54 5 21
dataTestReference()
S
57 5 17
getArgumentDefaultValue()
S
58 4 16
addCellReference()
S
58 4 15
localeFunc()
S
60 4 13
getInstance()
S
62 4 12
setArrayReturnType()
S
63 4 11
parseFormula()
S
62 4 11
loadLocales()
S
63 4 10
getMatrixDimensions()
S
58 3 15
boolToString()
S
66 4 8
getLocaleFile()
S
62 3 11
getValueFromCache()
S
65 3 9
executeBinaryComparisonOperation()
S
64 3 9
isImplemented()
S
70 3 5
getImplementedFunctionNames()
S
65 3 9
clearCalculationCacheForWorksheet()
S
73 2 5
renameCalculationCacheForWorksheet()
S
70 2 6
calculate()
S
69 2 7
saveValueToCache()
S
74 2 5
raiseFormulaError()
S
65 2 9
isNumericOrBool()
S
78 2 3
makeError()
S
78 2 3
getLocaleBoolean()
S
79 1 3
keyInExcelConstants()
S
79 1 3
getExcelConstants()
S
79 1 3
__construct()
S
68 1 7
flushInstance()
S
78 1 4
getDebugLog()
S
82 1 3
__clone()
S
80 1 3
getTRUE()
S
79 1 3
getFALSE()
S
79 1 3
getArrayReturnType()
S
80 1 3
getCalculationCacheEnabled()
S
82 1 3
setCalculationCacheEnabled()
S
77 1 4
enableCalculationCache()
S
81 1 3
disableCalculationCache()
S
81 1 3
clearCalculationCache()
S
81 1 3
setBranchPruningEnabled()
S
76 1 4
enableBranchPruning()
S
81 1 3
disableBranchPruning()
S
81 1 3
getLocale()
S
81 1 3
translateFormulaBlock()
S
64 1 9
_translateFormulaToLocale()
S
80 1 3
_translateFormulaToEnglish()
S
80 1 3
getFunctions()
S
80 1 3
setSuppressFormulaErrors()
S
81 1 3
getSuppressFormulaErrors()
S
82 1 3